﻿<Application 
	x:Class="ToyundaPhone.App"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:database="clr-namespace:ToyundaPhone.Database;assembly=ToyundaPhone.Database"
	xmlns:system="clr-namespace:System;assembly=mscorlib"
	>

	<!--Application Resources-->
	<Application.Resources>
		<database:LocalDatabaseConnectionStringBuilder x:Key="ConnectionString" DataSourceFile="SongDatabase.sdf" />
		<system:String x:Key="ListURL">http://toyunda.megami.fr/toyunda.txt</system:String>
		<system:String x:Key="ApplicationName">Toyunda Phone</system:String>
		<system:String x:Key="ApplicationNameUC">TOYUNDA PHONE</system:String>
		<Style TargetType="ListBoxItem">
			<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
		</Style>
		<DataTemplate x:Key="PlaylistPickerDataTemplate">
			<TextBlock TextWrapping="Wrap" Text="{Binding Name}" FontSize="{StaticResource PhoneFontSizeLarge}"/>
		</DataTemplate>
	</Application.Resources>

	<Application.ApplicationLifetimeObjects>
		<!--Required object that handles lifetime events for the application-->
		<shell:PhoneApplicationService 
			Launching="Application_Launching" Closing="Application_Closing" 
			Activated="Application_Activated" Deactivated="Application_Deactivated"/>
	</Application.ApplicationLifetimeObjects>

</Application>